﻿using RAP.Framework.Libary.DomTemplateBuilder.Element.Conditional;
using RAP.Framework.Libary.DomTemplateBuilder.Interface;

namespace RAP.Framework.Libary.DomTemplateBuilder.Handler.Conditional
{
	/// <summary>
	/// 检测参数对象不是否只包含指定值的Handler
	/// </summary>
	public class IsNotOnlyContainValuesHandler : IsOnlyContainValuesHandler
    {
        public new IsNotOnlyContainValues Element
        {
            get
            {
				return base.Element as IsNotOnlyContainValues;
            }
        }

		protected override bool DoCompareValue ( object propertyValue, object rootParamObject, object parentParamObject, ITemplateRenderContext context )
		{
			return !base.DoCompareValue ( propertyValue, rootParamObject, parentParamObject, context );
		}
    }
}
